﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Shop.Infrastructure.Containers;
using Shop.Core.Events;
using Shop.Data.IBatis.Orders;
using Shop.Core.Data.Orders;
using Shop.Data.IBatis.Customers;
using Shop.Core.Data.Customers;
using Shop.Core.Data.Catalog;
using Shop.Data.IBatis.Catalog;
namespace Shop.Data.IBatis
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public void Register()
        {
            Container.Current.RegisterType<IOrderRepository, OrderRepository>();
            Container.Current.RegisterType<ICustomerRepository, CustomerRepository>();
            Container.Current.RegisterType<IProductRepository, ProductRepository>();
        }

        public int Order
        {
            get
            {
                return 2;
            }
        }
    }
}
